package com.open.capacity.finance.service;

import com.open.capacity.finance.entity.SourceBaseAsset;
import com.open.capacity.finance.entity.SourceBaseAssetTotal;

import com.open.capacity.commons.PageResult;

import java.util.Map;
import java.util.List;

/**
 * 资产数据大类统计
 *
 * @author
 * @email
 * @date 2023-04-20 17:41:35
 */
public interface SourceBaseAssetTotalService {
    /**
     * 添加
     */
    int save2db(String companyId, Integer kjnd, Integer importway, String url);


    /**
     * 删除
     */
    int delete(String companyId);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    SourceBaseAssetTotal findById(String id);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<SourceBaseAssetTotal> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<SourceBaseAssetTotal> findAll(Map<String, Object> params);

    /**
     * 根据资产大类统计
     * @param params
     * @return
     */
    List<SourceBaseAssetTotal> findCategorys(Map<String, Object> params);

}

